'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	//event为客户端上传的参数
	let {name,fileID} = event
	let index = 0
	let res = await db.collection('uni-id-users').doc(event.id).update({
		resume_list: [{
			fileName: name,
			fileID: fileID,
		}]
	})
	//返回数据给客户端
	return {
		code: 200,
		msg: '数据上传成功',
	}
};
